package com.base.engine.graphics;

public class Vertex3f extends Vertex2f {

	private float z ; 
	
	public Vertex3f(float x, float y, float z) {
		super(x, y);
		setZ(z);
	}

	public float getZ() {
		return z;
	}

	public void setZ(float z) {
		this.z = z;
	}

	public String toString(){
		return "Position: ( "+getX()+" | "+getY()+" | "+getZ()+" )" ; 
	}
	
	public static Vertex3f addVectors(Vertex3f v1, Vertex3f v2){
		return new Vertex3f(v1.getX()+v2.getX(), v1.getY()+v2.getY(), v1.getZ()+v2.getZ());
	}

}
